(:: pragma bea:global-element-parameter parameter="$inventoryCheck1" element="ns0:InventoryCheck" location="../WSDLs/InventoryCheck.wsdl" ::)
(:: pragma bea:global-element-return element="ns1:InputParameters" location="../Adapter/OracleInventoryAdapter/xsd/OracleInventory_QueryStatus_sp.xsd" ::)

declare namespace ns1 = "http://xmlns.oracle.com/pcbpel/adapter/db/sp/OracleInventory_QueryStatus";
declare namespace ns0 = "http://www.example.org/InventoryCheck/";
declare namespace xf = "http://tempuri.org/ActivateNewCustomer/Transformation/inputToQueryStatus/";

declare function xf:inputToQueryStatus($inventoryCheck1 as element(ns0:InventoryCheck))
    as element(ns1:InputParameters) {
        <ns1:InputParameters>
            <ns1:IN_SERIAL_MAC>{ data($inventoryCheck1/macId) }</ns1:IN_SERIAL_MAC>
            <ns1:IN_QUERY_TYPE>C</ns1:IN_QUERY_TYPE>
        </ns1:InputParameters>
};

declare variable $inventoryCheck1 as element(ns0:InventoryCheck) external;

xf:inputToQueryStatus($inventoryCheck1)
